﻿<%@ Page Language="C#" MasterPageFile="~/PresentationLayer/Split.Master" AutoEventWireup="true"
    CodeBehind="VerPercFotos.aspx.cs" Inherits="Distrackting.PresentationLayer.VerPercFotos"
    Title="Distrackting: Percurso - Fotos" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="side" runat="server">
<div class="border box small">
<h2><asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></h2>
<ul>
<li><asp:HyperLink ID="HyperLink4" runat="server">Ficha técnica</asp:HyperLink></li>
<li><asp:HyperLink ID="HyperLink1" runat="server">Mapa</asp:HyperLink></li>
<li><asp:HyperLink ID="HyperLink2" runat="server">Fotos</asp:HyperLink></li>
<li><asp:HyperLink ID="HyperLink3" runat="server">Testemunhos</asp:HyperLink></li> 
</ul>
</div><div class="blank"></div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="rest" runat="server">
<div class="large border box">
    <h1>Fotos</h1>
    <asp:DataList ID="DataList1" runat="server" DataSourceID="FotosPercDataSource" 
        Height="400px" Width="628px">
        <ItemTemplate>
            <asp:Image ID="Image1" runat="server" ImageUrl='<%# Bind("url") %>' 
                Height="400px" Width="628px"/>
            <br />
            Utilizador:
            <asp:Label ID="UtilizadorLabel" runat="server" 
                Text='<%# Eval("Utilizador.nome") %>' />
            <br />
            Data e hora:<asp:Label ID="data_horaLabel" runat="server" Text='<%# Eval("data_hora") %>' />
            <br />
        </ItemTemplate>
    </asp:DataList>
    <asp:ObjectDataSource ID="FotosPercDataSource" runat="server" 
        SelectMethod="getFotosByPercurso" 
        TypeName="Distrackting.BusinessLayer.GerirPercursos">
        <SelectParameters>
            <asp:QueryStringParameter Name="cod_perc" QueryStringField="perc" 
                Type="Object" />
        </SelectParameters>
    </asp:ObjectDataSource>
    </div>
    </asp:Content>
